<%@page import="interview1.InterViewVo"%>
<%@page import="interview1.InterView"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel='stylesheet' href="./interview/interview.css">
<script src="./interview/interview.js"></script>
<script>
function btnList1(){
	location.href = "index.jsp?inc_contents=./interview_list.jsp";
}
</script>
<style>

textarea { width: 95%; padding: 10px; border: 3px solid #999; }

#textarea_sol { 
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* IE 8+ */
}
	
</style>
</head>
<body>
<jsp:useBean id="interVo" class="interview1.InterViewVo"/>
<jsp:setProperty property="*" name="interVo"/>
<% 
//아이디 정보 가져오는 것(로그인 확인하는 것)
String sessionID=(String)session.getAttribute("mid");
%>
<%
InterView iv = new InterView();
iv.setVo(interVo);
InterViewVo vo = iv.view();
%>
<br/>
<center><h1>기업 인터뷰</h1></center>

<form name="interview_frm" method="post" action="">
	<div id="interview_title2">
		<div id="inter_title_mid2">
			<div class="tt">아이디</div>&nbsp;<div class="tt2"><%=vo.getMid()%></div>
		</div>
		<div id="inter_title_subject2">
			<div class="tt">제&emsp;목</div>&nbsp;<div class="tt2"><%=vo.getSubject()%></div>
		</div>
		<br/>
		<div id="inter_title_content2">
			<textarea id="textarea_sol" name="content" rows="30"  readonly><%=vo.getContent()%></textarea>
		</div>
	</div>
	
	<div id="btnList_div">

	<%if(sessionID != null && (sessionID.equals(vo.getMid()) || sessionID.equals("admin"))) { %>
		<input type="button" id="btnModify" value="수정" onclick = "btnModify1(<%=vo.getSerial()%>)">&emsp;
		<input type="button" id="btnModify" value="삭제" onclick = "btnDelelte_interview(<%=vo.getSerial()%>)">&emsp;
	<%}else{ %>
		<%} %>
		<input type="button" id="btnList2" value="목록" onclick = "btnList1()">
	</div>
</form>


</body>
</html>